The Essence of Lightweight Family Polymorphism
نویسندگان
چکیده
The formal core calculus .FJ has been introduced to model lightweight family polymorphism, a programming style to support reusable yet type-safe mutually recursive classes. This paper clarifies the essence of the features of .FJ, by giving a formal translation from .FJ into a variant of Featherweight GJ with a little extension of F-bounded polymorphism. The extension, which allows self types to appear in mutually recursive constraints on type variables, is significant to achieve a clear correspondence between the two languages without losing type safety. We show that the extended version of Featherweight GJ is type sound and that the formal translation preserves typing and reduction.
منابع مشابه
Lightweight Family Polymorphism
Family polymorphism has been proposed for object-oriented languages as a solution to supporting reusable yet type-safe mutually recursive classes. A key idea of family polymorphism is the notion of families, which are used to group mutually recursive classes. In the original proposal, due to the design decision that families are represented by objects, dependent types had to be introduced, resu...
متن کاملPrediction of Lightweight Aggregate Concrete Compressive Strength
Nowadays, the better performance of lightweight structures during earthquake has resulted in using lightweight concrete more than ever. However, determining the compressive strength of concrete used in these structures during their service through a none-destructive test is a popular and useful method. One of the main methods of non-destructive testing in the assessment of compressive strength...
متن کاملMODELING FLEXURAL STRENGTH OF EPS LIGHTWEIGHT CONCRETE USING REGRESSION, NEURAL NETWORK AND ANFIS
Lightweight concrete (LWC) is a kind of concrete that made of lightweight aggregates or gas bubbles. These aggregates could be natural or artificial, and expanded polystyrene (EPS) lightweight concrete is the most interesting lightweight concrete and has good mechanical properties. Bulk density of this kind of concrete is between 300-2000 kg/m3. In this paper flexural strength of EPS is modeled...
متن کاملCYP1B1 L432V Polymorphism and Lung Cancer Risk in the Iranian Population
Background: Lung cancer is considered as one of the most frequent cancers worldwide, and has been the cause of more than one <span style="font-variant...
متن کاملThe impact of BMI, Smoking, Family History and Ala 119 Ser (rs1056827) Polymorphism of CYP1B1*2 Genes with Susceptibility to Prostate Cancer among Iranian Men
Background and Aims: The genes involved in detoxification and the elimination of toxic metabolites have a vital role in cancer pathogenesis. Also, there is evidence that higher amounts of body fat are associated with increased risks of several cancers. The current study aims to identify the relationship of age, body mass index (BMI), smoking, family history, and polymorphism rs1056827 of CYP1B1...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- Journal of Object Technology
دوره 7 شماره
صفحات -
تاریخ انتشار 2008